home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
Adjust_HSV.ifx
< prev
next >
Wrap
Text File
|
1996-03-02
|
533b
|
26 lines
/*
* Adjust_HSB.ifx
* Script to alter the Hue, Saturation, and/or Brightness
* values of pixels in an image: The PreScript sets up the
* ImpAlterHSBParameters clip variable with the
* RGB deltas.
*
* by Steve Tibbett
*/
Options Results
SeqNum=Word(Arg(1),4);
Settings=GetClip("ImpAdjustHSBParameters"SeqNum);
if (Settings="") then do
RequestNotify "ImpAdjustHSBParameters invalid in ImpAdjustHSB.ifx"
return 20
End
Parse Var Settings H S B
If (H~=0) then Hue H
If (S~=0) then Saturation S
If (B~=0) then Brightness B